package br.com.sc.negocio.entidade;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * The persistent class for the uf database table.
 * 
 */
@Entity
@Table(name="uf")
public class UF extends SCEntidade {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	private int idUF;

	@Column(length=100)
	private String nomeUF;

	@Column(length=2)
	private String siglaUF;

	//bi-directional many-to-one association to Endereco
	@OneToMany(mappedBy="uf")
	private List<Endereco> enderecos;

    public UF() {
    }

	public int getIdUF() {
		return this.idUF;
	}

	public void setIdUF(int idUF) {
		this.idUF = idUF;
	}

	public String getNomeUF() {
		return this.nomeUF;
	}

	public void setNomeuf(String nomeUF) {
		this.nomeUF = nomeUF;
	}

	public String getSiglaUF() {
		return this.siglaUF;
	}

	public void setSiglaUF(String siglaUF) {
		this.siglaUF = siglaUF;
	}

	public List<Endereco> getEnderecos() {
		return this.enderecos;
	}

	public void setEnderecos(List<Endereco> enderecos) {
		this.enderecos = enderecos;
	}
	
}